package com.example.study;

/**
 * @Author: leo
 * @date: 2022/5/7
 */
public class Children extends Father {
    //重写父类方法
    @Override
    public void say() {
        System.out.println("说英语");
        System.out.println("说日语");
    }

    public static void main(String[] args) {
       String s1 = "hello";
       s1 = s1.concat("hi");
        System.out.println(s1);
        //hellohi
    }
}
